package cn.juque.jdfsystem.entity;

import cn.juque.lucenecandy.core.annotation.Field;
import cn.juque.lucenecandy.core.annotation.Index;
import cn.juque.lucenecandy.core.enums.DataTypeEnum;
import lombok.Data;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>PermissionInfo</li>
 * </ul>
 * @date 2024-01-25
 **/
@Data
@Index(value = "jdf_permission_info")
public class PermissionInfo extends JdfSystemEntity {

    /**
     * 源平台ID
     */
    @Field(value = "source_platform_id")
    private String sourcePlatformId;

    /**
     * 可访问路径
     */
    @Field(value = "path")
    private String path;

    /**
     * 目标平台ID
     */
    @Field(value = "target_platform_id")
    private String targetPlatformId;

    /**
     * 有效标识
     */
    @Field(value = "valid_flag", type = DataTypeEnum.INT)
    private Integer validFlag;
}
